def func(num: int) -> int:
    res = 0
    while num > 0:
        res += num
        num -= 1
    return res


if __name__ == '__main__':
    res = func(100)
    print(res)
